/**
 * 
 */
package teshop.dao;

import java.util.List;

import teshop.domain.Category;

/**
 * Category DAO contract interface
 * 
 * Created: 25.02.2009
 * @author Hryhory Lira
 *
 */
public interface CategoryDAO {
	
	Category loadById(Long categoryId);
	
	void persist(Category category);
	
	void update(Category category);
	
	void delete(Long categoryId);
	
	List<Category> getSubCategories(Long categoryId);
	
	List<Category> getAll();

}
